home *** CD-ROM | disk | FTP | other *** search
/ CyberMycha 2008 January / Cybermycha 1_2008.iso / Data.cab / _5FC3044A06C840B79028E993298582DC < prev    next >
Encoding:
Text File  |  2004-07-20  |  5.8 KB  |  246 lines

  1. // $TEXTURE1
  2. // $TEX1OPTIONSFILE
  3. // $DIRT
  4. // $DIRTOPTIONSFILE
  5. // $SPECPOW
  6. // $REFL_STRENGTH
  7. // $BFUNC
  8. // $CULLING
  9.  
  10. Shader()
  11. {
  12.     ShaderQuality(5)
  13.     Pass()
  14.     {
  15.         //lighting()
  16.  
  17.         VertexShader("CarG_CmCd_Bump_ps20.vsh")
  18.         Pixelshader("CarG_CmCd_Bump_ps20.psh")
  19.  
  20.         !include("__tex1.mtt")
  21.         !include("__Dirt.mtt")
  22.         !include("__CloudsVS.mtt")
  23.         !include("__TerrainColormapVS.mtt")
  24.         !include("__DynamicCubeMap.mtt")
  25.         !include("__DirtNormalsMap.mtt")
  26.  
  27.         TFactor(0.0, 0.0, REFL_STRENGTH, 1.0)
  28.         colorgen("tfactor", "none", 0,0,0, "user", 0,0,0) // A - dirt level
  29.  
  30.         !include(BFUNC)
  31.     }
  32.     sortweight("depth_sorted")
  33.     Cull(CULLING)
  34. }
  35.  
  36.  
  37. shader()
  38. {
  39.     ShaderQuality(3)
  40.     pass()
  41.     {
  42.         //Lighting()
  43.         Pixelshader("CarG_CmCd_ps14.psh")
  44.         Vertexshader("CarG_CmCd_ps14.vsh")
  45.  
  46.         !include("__tex1.mtt")
  47.         !include("__Dirt.mtt")
  48.         !include("__TerrainColormapVS.mtt")
  49.         !include("__CloudsVS.mtt")
  50.         !include("__DynamicCubeMap.mtt")
  51.  
  52.         TFactor(0.0, 0.0, REFL_STRENGTH, 1.0)
  53.         colorgen("tfactor", "none", 0,0,0, "user", 0,0,0) // A - dirt level
  54.  
  55.         !include(BFUNC)
  56.     }
  57.     sortweight("depth_sorted")
  58.     Cull(CULLING)
  59. }
  60.  
  61. shader()
  62. {
  63.     ShaderQuality(2)
  64.     pass()
  65.     {
  66.         //Lighting()
  67.         Pixelshader("CarG_Cm_ps11.psh")
  68.         Vertexshader("CarG_Cm_ps11.vsh")
  69.  
  70.         !include("__tex1.mtt")
  71.         !include("__Dirt.mtt")
  72.         !include("__TerrainColormapSmallVS.mtt")
  73.         !include("__DynamicCubeMap.mtt")
  74.  
  75.         TFactor(0.0, 0.0, REFL_STRENGTH, 1.0)
  76.         colorgen("tfactor", "none", 0,0,0, "user", 0,0,0) // B - refl strength, A - dirt level
  77.  
  78.         !include(BFUNC)
  79.     }
  80.     sortweight("depth_sorted")
  81.     Cull(CULLING)
  82. }
  83.  
  84. shader()
  85. {
  86.     ShaderQuality(1)
  87.     pass()
  88.     {
  89.         //Lighting()
  90.         Pixelshader("CarG_ps11.psh")
  91.         Vertexshader("CarG_ps11.vsh")
  92.  
  93.         !include("__tex1.mtt")
  94.         !include("__Dirt.mtt")
  95.         !include("__TerrainColormapSmallVS.mtt")
  96.  
  97.         TFactor(0.0, 0.0, REFL_STRENGTH, 1.0)
  98.         colorgen("tfactor", "none", 0,0,0, "user", 0,0,0) // B - refl strength, A - dirt level
  99.  
  100.         !include(BFUNC)
  101.     }
  102.     sortweight("depth_sorted")
  103.     Cull(CULLING)
  104. }
  105.  
  106. //=========================== GF2 ======================================
  107. shader()
  108. {
  109.  
  110.     ShaderQuality(2)
  111.     pass()
  112.     {
  113.         Lighting()
  114.         tmu()
  115.         {
  116.             Texture()
  117.             {
  118.                 Mapchannel(0)
  119.                 Image(TEXTURE1)
  120.                 !include(TEX1OPTIONSFILE)
  121.             }
  122.             ColorOp("mul", "current", "texture", "current")
  123.             AlphaOp("arg1", "texture_a", "current", "current")
  124.         }
  125.         AmbientColor(%daycolor_a, %daycolor_a, %daycolor_a, 1.000)
  126.         DiffuseColor(%daycolor_r, %daycolor_g, %daycolor_b, %daycolor_a)
  127.         SpecularColor(%sunvisibility, %sunvisibility, %sunvisibility, 1.000)
  128.         EmissiveColor(0.0, 0.0, 0.0, 1.000)
  129.         SpecularPow(SPECPOW)
  130.         BlendFunc("one", "inv_src_alpha")
  131.                
  132.     }
  133.     pass()
  134.     {
  135.         Lighting()
  136.         tmu()
  137.         {
  138.             Texture()
  139.             {
  140.                 Mapchannel(0)
  141.                 Image(DIRT_GF2)
  142.                 !include(DIRTOPTIONSFILE)
  143.             }
  144.             ColorOp("mul", "tfactor", "current", "current")
  145.             AlphaOp("mul", "tfactor_a", "texture_a", "current")       
  146.         }
  147.         tfactor(%dirtcolor_r, %dirtcolor_g, %dirtcolor_b, 1.0)
  148.         colorgen("tfactor", "none", 0,0,0, "user", 0,0,0)
  149.         
  150.         AmbientColor(%daycolor_a, %daycolor_a, %daycolor_a, 1.000)
  151.         DiffuseColor(%daycolor_r, %daycolor_g, %daycolor_b, %daycolor_a)
  152.         SpecularColor(0.0, 0.0, 0.0, 1.000)
  153.         EmissiveColor(0.0, 0.0, 0.0, 1.000)
  154.         SpecularPow(0.0)
  155.         BlendFunc("src_alpha", "inv_src_alpha")
  156.     }
  157.  
  158.  
  159.     pass()
  160.     {
  161.         Lighting()
  162.         tmu()
  163.         {
  164.             TexGen("planar")
  165.             TexMod("scale", "const", 0.00001, 0, 0, "const", 0.00001, 0, 0)
  166.             texture()
  167.             {
  168.                 Image(%colortexturesmall)
  169.                 addressfunc("clamp", "clamp", "clamp")
  170.             }
  171.             ColorOp("arg1", "tfactor", "current", "diffuse_a")
  172.             AlphaOp("add", "texture_a", "tfactor_a", "current")
  173.         }
  174.  
  175.         tmu()
  176.         {
  177.             ColorOp("arg1", "current", "texture", "current")
  178.             AlphaOp("add", "current", "diffuse_a", "current")
  179.         }         
  180.  
  181.         tfactor(0.0, 0.0, 0.0, %daycolor_a)
  182.  
  183.         AmbientColor(0.0, 0.0, 0.0, 1.000)
  184.         DiffuseColor(0.0, 0.0, 0.0, 0.3)
  185.         SpecularColor(0.0, 0.0, 0.0, 1.000)
  186.         EmissiveColor(0.0, 0.0, 0.0, 1.000)
  187.         SpecularPow(0.0)
  188.         
  189.         BlendFunc("inv_src_alpha", "src_alpha")        
  190.  
  191.         
  192.     }                    
  193.     lightpass()
  194.     !include("spot_spotmap.mtt")    
  195.     
  196.     sortweight("depth_sorted")
  197.     Cull(CULLING)
  198. }    
  199. //=======================================================
  200. /*
  201. shader()
  202. {
  203.     ShaderQuality(0)
  204.     pass()
  205.     {
  206.         Lighting()
  207.         Pixelshader("Common_specular.psh")
  208.         Vertexshader("Common_specular.vsh")
  209.         !include("__tex1.mtt")
  210.         !include(BFUNC)        
  211.     }
  212.     sortweight("depth_sorted")
  213.     Cull(CULLING)
  214. }
  215. */
  216. shader()
  217. {
  218.     ShaderQuality(0)
  219.     pass()
  220.     {
  221.         Lighting()
  222.         tmu()
  223.         {
  224.             Texture()
  225.             {
  226.                 Mapchannel(0)
  227.                 Image(TEXTURE1)
  228.                 !include(TEX1OPTIONSFILE)
  229.             }
  230.             ColorOp("mul", "current", "texture", "current")
  231.             AlphaOp("arg1", "texture_a", "current", "current")
  232.         }
  233.         
  234.  
  235.         !include("__LightningColorsSpecGF2.mtt")  
  236.         !include(BFUNC)
  237.     }
  238. //    lightpass()
  239. //    !include("spot_spotmap.mtt")
  240.         
  241.     sortweight("depth_sorted")
  242.     Cull(CULLING)
  243. }
  244.  
  245.  
  246.